App.Template = angular.module('Template', []).
controller('Template.Ctrl', ['MainApp.DataService', '$scope', function (Data, $scope) {
	
}]).
service('Template.ConfigService', ['MainApp.ConfigService', function (Config) {
	this.directiveDir = Config.Template.templateDir+'Template/';
	this.DialogBox = {
		Title: {
			error: 'Błąd',
			empty: ''
		}
	}
}]).
directive('dialogBox', ['MainApp.ConfigService', 'Template.ConfigService', function (Config, TemplateConfig) {
	return {
		restrict: 'E',
		templateUrl: TemplateConfig.directiveDir+'dialogBox'+Config.Template.directiveExt,
		replace: true,
		scope: {
			dialog: '=data'
		},
		controller: function ($scope) {
			$scope.titles = TemplateConfig.DialogBox.Title;
			$scope.hide = function () {
				$scope.dialog.show = false;
			}
			//$scope.dialog = '=data';
		}
	}
}]);